package com.system.service;

import com.system.dao.HistoryEmployeeSalaryMapper;
import com.system.pojo.HistoryEmployeeSalary;

import java.util.List;

/**
 * Created by 陈文杰 on 2022/6/12 16:35
 */
public class HistoryEmployeeSalaryServiceImpl implements HistoryEmployeeSalaryService{

    private HistoryEmployeeSalaryMapper historyEmployeeSalaryMapper;

    public void setHistoryEmployeeSalaryMapper(HistoryEmployeeSalaryMapper historyEmployeeSalaryMapper) {
        this.historyEmployeeSalaryMapper = historyEmployeeSalaryMapper;
    }

    @Override
    public List<HistoryEmployeeSalary> queryHistoryEmployeeSalaryAll() {
        return historyEmployeeSalaryMapper.queryHistoryEmployeeSalaryAll();
    }

    @Override
    public List<HistoryEmployeeSalary> queryHistoryEmployeeSalaryByDate(String date) {
        return historyEmployeeSalaryMapper.queryHistoryEmployeeSalaryByDate(date);
    }

    @Override
    public int addHistoryEmployeeSalary() {
        return historyEmployeeSalaryMapper.addHistoryEmployeeSalary();
    }
}
